<div id="tab1" class="tab_content">
            <div class=" mod-cont">
            <div class="table">
              <table cellpadding="3" cellspacing="30" border="0" width="100%">
                <tr>
                  <th width="30%">Tên dự án</th>
                  <th width="10%">Số người tham gia</th>
                  <th width="20%">Giá trị cao nhất</th>
                  <th width="20%">Thời gian tham gia cuối</th>
                  <th width="20%">Hành động</th>
                </tr>
              </table>
            </div>
            <?php foreach($data as $value): ?>
            <div class="table">
              <!--div class="tag-new"><img src="images/new.png" /></div-->
              <table cellpadding="3" cellspacing="3" border="0" width="100%">
                <tr>
                  <td width="30%" align="center"><div class="ava"><a href="<?php echo Yii::app()->createUrl('/job/create/view',array('id'=>$value->id)); ?>"><?php echo $value->name; ?></a></td>
                  <td width="10%"  align="center"><?php echo count($value->bidjobs); ?><br />
                  <td width="20%" align="center">
                    <?php $da =Yii::app()->getModule('job')->getMaxBidJob($value->id); 
                          if ($data != null) {
                            echo $da['money'].' '.$value->budget->currency->currency.'/'.$da['timeduration'];
                          }else{
                            echo "Chưa có người tham gia";
                          }
                    ?>
                  </td>
                  <td width="20%" align="center"><?php echo date("Y-m-d",strtotime($value->timeend)); ?></td>
                  <td width="20%" align="center">
                    <?php echo CHtml::dropDownList('','',array(1=>'Chỉnh sửa',2=>'Xóa'),array('prompt' => 'Lựa chọn'));?>
                  </td>
                </tr>
              </table>
              </div>
            <?php endforeach; ?>
            
          </div>
        </div>